Calculus of negligence